home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / Speech MPW / compat.h next >
Encoding:
C/C++ Source or Header  |  1988-09-16  |  3.7 KB  |  124 lines  |  [TEXT/????]

  1. /*
  2.  * This FILE is intended for use with the MPW C 2.0 Interface files
  3.  * which generate InLine code for routines that call the
  4.  * ToolBox with points by value and strings as Pascal strings.
  5.  * It should be included AFTER any Macintosh #include files.  See
  6.  * Appendix H of the MPW C 2.0 manual for details.
  7.  *
  8.  * This file allows use of MPW C 2.0 standardized ToolBox calls using
  9.  * the spelling from Inside Macinstosh, and not all upper case, as is used
  10.  * in the MPW C 2.0 header files.  I HATE it when software companies do 
  11.  * things for "historical" reasons!
  12.  *
  13.  * If you like to pass C strings to the ToolBox, do NOT include this
  14.  * FILE.
  15.  *
  16.  * Earle R. Horton.    Friday, January 22, 1988 11:23:07 pm
  17.  *
  18.  * Revised to correct some missions: J. B. Levin July 1988
  19.  */
  20. #define NewControl    NEWCONTROL
  21. #define SetCTitle    SETCTITLE
  22. #define GetCTitle    GETCTITLE
  23. #define DragControl    DRAGCONTROL
  24. #define TestControl    TESTCONTROL
  25. #define TrackControl    TRACKCONTROL
  26. #define FindControl    FINDCONTROL
  27. #define OpenDeskAcc    OPENDESKACC
  28. #define FindDItem    FINDDITEM
  29. #define NewDialog    NEWDIALOG
  30. #define ParamText    PARAMTEXT
  31. #define GetIText    GETITEXT
  32. #define SetIText    SETITEXT
  33. #define NewCDialog    NEWCDIALOG
  34. #define GetVol        GETVOL
  35. #define SetVol        SETVOL
  36. #define GetVInfo    GETVINFO
  37. #define UnmountVol    UNMOUNTVOL
  38. #define Eject        EJECT
  39. #define FlushVol    FLUSHVOL
  40. #define Create        CREATE
  41. #define FSDelete    FSDELETE
  42. #define FSOpen        FSOPEN
  43. #define OpenRF        OPENRF
  44. #define Rename        RENAME
  45. #define GetFInfo    GETFINFO
  46. #define SetFInfo    SETFINFO
  47. #define SetFLock    SETFLOCK
  48. #define RstFLock    RSTFLOCK
  49. #define GetFontName    GETFONTNAME
  50. #define GetFNum        GETFNUM
  51. #define LCellSize    LCELLSIZE
  52. #define LNew        LNEW
  53. #define LClick        LCLICK
  54. #define NewMenu        NEWMENU
  55. #define AppendMenu    APPENDMENU
  56. #define SetItem        SETITEM
  57. #define GetItem        GETITEM
  58. #define InsMenuItem    INSMENUITEM
  59. #define MenuSelect    MENUSELECT
  60. #define EqualString    EQUALSTRING
  61. #define RelString    RELSTRING
  62. #define UprString    UPRSTRING
  63. #define DIZero        DIZERO
  64. #define NumToString    NUMTOSTRING
  65. #define StringToNum    STRINGTONUM
  66. #define SFPutFile    SFPUTFILE
  67. #define SFPPutFile    SFPPUTFILE
  68. #define SFGetFile    SFGETFILE
  69. #define SFPGetFile    SFPGETFILE
  70. #define IUDateString    IUDATESTRING
  71. #define IUDatePString    IUDATEPSTRING
  72. #define IUTimeString    IUTIMESTRING
  73. #define IUTimePString    IUTIMEPSTRING
  74. #define IUCompString    IUCOMPSTRING
  75. #define IUEqualString    IUEQUALSTRING
  76. #define DIBadMount    DIBADMOUNT
  77. #define DrawString    DRAWSTRING
  78. #define StringWidth    STRINGWIDTH
  79. #define StuffHex    STUFFHEX
  80. #define AddPt        ADDPT
  81. #define SubPt        SUBPT
  82. #define EqualPt        EQUALPT
  83. #define PtInRect    PTINRECT
  84. #define Pt2Rect        PT2RECT
  85. #define PtToAngle    PTTOANGLE
  86. #define PtInRgn        PTINRGN
  87. #define StdText        STDTEXT
  88. #define StdLine        STDLINE
  89. #define CreateResFile    CREATERESFILE
  90. #define OpenResFile    OPENRESFILE
  91. #define OpenRFPerm    OPENRFPERM
  92. #define GetNamedResource    GETNAMEDRESOURCE
  93. #define Get1NamedResource    GET1NAMEDRESOURCE
  94. #define GetResInfo    GETRESINFO
  95. #define SetResInfo    SETRESINFO
  96. #define AddResource    ADDRESOURCE
  97. #define GetAppParms    GETAPPPARMS
  98. #define OpenDriver    OPENDRIVER
  99. #define TEGetOffset    TEGETOFFSET
  100. #define TEGetPoint    TEGETPOINT
  101. #define TEClick        TECLICK
  102. #define NewString    NEWSTRING
  103. #define SetString    SETSTRING
  104. #define GetIndString    GETINDSTRING
  105. #define DeltaPoint    DELTAPOINT
  106. #define ShieldCursor    SHIELDCURSOR
  107. #define NewWindow    NEWWINDOW
  108. #define SetWTitle    SETWTITLE
  109. #define GetWTitle    GETWTITLE
  110. #define NewCWindow    NEWCWINDOW
  111. #define GrowWindow    GROWWINDOW
  112. #define DragWindow    DRAGWINDOW
  113. #define TrackGoAway    TRACKGOAWAY
  114. #define FindWindow    FINDWINDOW
  115. #define PinRect        PINRECT
  116. #define DragGrayRgn    DRAGGRAYRGN
  117. #define TrackBox    TRACKBOX
  118.  
  119.  
  120. /* This is for programs which are designed to be compiled in either
  121.  * LSC or MPW C and with the same usage for Str255.
  122.  */
  123. #define PASS_STR(a) &(a)
  124.